package org.jeecg.modules.meter.service.impl;

import org.jeecg.entity.meter.MeterGateway;
import org.jeecg.modules.meter.mapper.MeterGatewayMapper;
import org.jeecg.modules.meter.service.IMeterGatewayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 仪表设备网关
 * @Author: jeecg-boot
 * @Date:   2020-11-20
 * @Version: V1.0
 */
@Service
public class MeterGatewayServiceImpl extends ServiceImpl<MeterGatewayMapper, MeterGateway> implements IMeterGatewayService {
    @Autowired
    private MeterGatewayMapper meterGatewayMapper;

    @Override
    public List<MeterGateway> queryGetWayList(String projectId) {
        return meterGatewayMapper.queryGetWayList(projectId);
    }

    @Override
    public Integer queryCountByWayNo(String no, String meterGateway) {
        return meterGatewayMapper.queryCountByWayNo(no,meterGateway);
    }

    @Override
    public String queryMeterGateWayName(String projectId, String trim) {
        return meterGatewayMapper.queryMeterGateWayName(projectId,trim);
    }

    @Override
    public MeterGateway queryById(String meterGateway) {
        return meterGatewayMapper.queryById(meterGateway);
    }

    @Override
    public MeterGateway getByMeterId(String meterId) {
        return meterGatewayMapper.getByMeterId(meterId);
    }
}
